﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Commodity
{
    /// <summary>
    /// 商品评论表
    /// </summary>
    [Table("CommodityReviews")]
    public class CommodityReviews: FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 商品编号
        /// </summary>
        public Guid Productid { get; set; }
        /// <summary>
        /// 评论人编号
        /// </summary>
        [Required]
        public long Reviewsid { get; set; }

        
        public string  UserFaceImage { get; set; }


        /// <summary>
        /// 评论人用户名
        /// </summary>
        [StringLength(200)]
        public string ReviceName { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        [Required]
        [StringLength(1000)]
        public string RevicwsContent { get; set; }
        /// <summary>
        /// 评分0-5
        /// </summary>
        [Required]
        public int CommentScore { get; set; }

        /// <summary>
        /// 评分0-5
        /// </summary>
        [Required]
        public int ServiceCommentScore { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public bool IsShow { get; set; } = true;
        /// <summary>
        /// 评价的订单编号
        /// </summary>
        public Guid OrderId { get; set; }
        public virtual ICollection<CommodityReviewsImage> CommodityReviewsListImage { get; set; }
    }
}
